package cn.zyq.ykb.controller.h5.config;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.config.ConfigInfo;
import cn.zyq.ykb.service.config.ConfigInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.PageParam;

/**
 * 基础信息配置Controller
 *
 * @author SystemAuth
 * @date 2023-05-22
 */

@RestController(value = "H5ConfigInfoController")
@RequestMapping("/api/configInfo")
@Api(tags = "基础信息配置接口")
public class ConfigInfoController extends BaseController {

    @Autowired
    private ConfigInfoService configInfoService;

    /**
     * 查询基础信息配置列表
     */
    @ApiOperation(value = "列表", response = ConfigInfo.class)
    @PostMapping("/list")
    public Object list(@RequestBody PageParam pageParam) {
        return this.configInfoService.selectConfigInfoList(pageParam);
    }
}
